format (
self,
value,
fieldType='VARCHAR',
precision=None,
quote=1,
)
Format an atomic value for insertion into an SQL statement
fieldType specifies the target datatype, precision is the
number of bytes, characters, or digits of the specified type.
quote is a flag that can be set to a false value to avoid
quoting of textual values (useful when assembling a text
value from multiple parts).
Subclasses can extend this method to support additional field
types.
|